package com.liuxvru.project.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import com.liuxvru.common.annotation.Excel;
import com.liuxvru.common.core.domain.BaseEntity;

/**
 * 客户对象 pro_customer
 *
 * @author liuxvru
 * @date 2025-04-17
 */
@Data
@TableName(value = "pro_customer")
public class Customer extends BaseEntity implements Serializable
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 客户ID */
    @TableId(value = "customer_id", type = IdType.AUTO)
    private Long customerId;

    /** 项目ID */
    @Excel(name = "项目ID")
    @TableField(value = "project_id")
    private Long projectId;

    /** 客户名称 */
    @Excel(name = "客户名称")
    @TableField(value = "customer_name")
    private String customerName;

    /** 行业名称 */
    @Excel(name = "行业名称")
    @TableField(value = "industry_id")
    private String industryId;

    /** 客户规模 */
    @Excel(name = "客户规模")
    @TableField(value = "scale")
    private Long scale;

    /** 客户描述信息 */
    @Excel(name = "客户描述信息")
    @TableField(value = "description")
    private String description;

    /** 负责人ID */
    @Excel(name = "负责人ID")
    @TableField(value = "assignee_id")
    private Long assigneeId;

    /** 联系人姓名 */
    @Excel(name = "联系人姓名")
    @TableField(value = "name")
    private String name;

    /** 联系人职位 */
    @Excel(name = "联系人职位")
    @TableField(value = "title")
    private String title;

    /** 联系人邮箱 */
    @Excel(name = "联系人邮箱")
    @TableField(value = "email")
    private String email;

    /** 联系人电话 */
    @Excel(name = "联系人电话")
    @TableField(value = "phone")
    private String phone;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "created_at")
    private Date createdAt;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    @TableField(value = "created_by")
    private Long createdBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "updated_at")
    private Date updatedAt;

    /** 更新人ID */
    @Excel(name = "更新人ID")
    @TableField(value = "updated_by")
    private Long updatedBy;


}
